﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;

namespace LetLord.Models
{
    [Table("LandlordPreferences")]
    public class LandlordPreferences
    {
        [Key]
        [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
        public int LandLordPreferencesId { get; set; }
        public string PreferenceOption { get; set; }
        public int Weighting { get; set; }
        public bool IsSelected { get; set; }

        //[NotMapped]
        //public List<PreferenceOption> LandlordTenantPreferences { get; set; }       

        // A list of LandlordPreferences belong to 1 Landlord
        public int UserId { get; set; }
        [ForeignKey("UserId")]
        public virtual Landlord Landlord { get; set; }
    }
}